package net.qhzw.vip.qiyu.feign;


import io.swagger.annotations.ApiOperation;
import net.qhzw.vip.qiyu.entity.SysCommunity;
import net.qhzw.vip.qiyu.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "lease-server", contextId = "Community")
public interface CommunityFeignClient {


//    @ApiOperation(value = "查询社区id name下拉框")
//    @GetMapping("/sys/communitys/label")
//    JsonResult<List<SysCommunity>> queryBox(@RequestParam(required = false) Byte businessType,
//                                            @RequestParam(required = false) String keywords);


    @ApiOperation(value = "查询社区id name下拉框")
    @GetMapping("/label")
    JsonResult<List<SysCommunity>> queryBox(@RequestParam(required = false) Byte businessType,
                                            @RequestParam(required = false) String keywords,
                                            @RequestParam(required = false) Byte type);


    @ApiOperation(value = "根据dtsUserId查询维修站点")
    @GetMapping("sys/communitys/getByUserId/{dtsUserId}")
    SysCommunity findByDtsUserId(@PathVariable Long dtsUserId);

}
